Skip to content

Commit a75af55

Browse files
committed
Revert "Log to stderr"
This reverts commit 8074ad1.
1 parent 8074ad1 commit a75af55

File tree

30 files changed

+30
-30
lines changed

30 files changed

+30
-30
lines changed

compiled_starters/cpp/src/Server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ int main(int argc, char* argv[]) {
1616
std::cerr << std::unitbuf;
1717

1818
// You can use print statements as follows for debugging, they'll be visible when running tests.
19-
std::cerr << "Logs from your program will appear here" << std::endl;
19+
std::cout << "Logs from your program will appear here" << std::endl;
2020

2121
if (argc != 3) {
2222
std::cerr << "Expected two arguments" << std::endl;

compiled_starters/csharp/src/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static bool MatchPattern(string inputLine, string pattern)
2323
string inputLine = Console.In.ReadToEnd();
2424

2525
// You can use print statements as follows for debugging, they'll be visible when running tests.
26-
Console.Error.WriteLine("Logs from your program will appear here!");
26+
Console.WriteLine("Logs from your program will appear here!");
2727

2828
// Uncomment this block to pass the first stage
2929
//

compiled_starters/gleam/src/main.gleam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import gleam/string
55

66
pub fn main() {
77
// You can use print statements as follows for debugging, they'll be visible when running tests.
8-
io.print_error("Logs from your program will appear here!")
8+
io.println("Logs from your program will appear here!")
99

1010
let args = argv.load().arguments
1111
let assert Ok(input_line) = erlang.get_line("")

compiled_starters/go/cmd/mygrep/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func matchLine(line []byte, pattern string) (bool, error) {
4747
var ok bool
4848

4949
// You can use print statements as follows for debugging, they'll be visible when running tests.
50-
fmt.Fprintln(os.Stderr, "Logs from your program will appear here!")
50+
fmt.Println("Logs from your program will appear here!")
5151

5252
// Uncomment this to pass the first stage
5353
// ok = bytes.ContainsAny(line, pattern)

compiled_starters/haskell/app/Main.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ main = do
1616
input_line <- getLine
1717

1818
-- You can use print statements as follows for debugging, they'll be visible when running tests.
19-
hPutStrLn stderr "Logs from your program will appear here"
19+
putStrLn "Logs from your program will appear here"
2020

2121
-- Uncomment this block to pass stage 1
2222
-- if head args /= "-E"

compiled_starters/javascript/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function main() {
1616
}
1717

1818
// You can use print statements as follows for debugging, they'll be visible when running tests.
19-
console.error("Logs from your program will appear here");
19+
console.log("Logs from your program will appear here");
2020

2121
// Uncomment this block to pass the first stage
2222
// if (matchPattern(inputLine, pattern)) {

compiled_starters/python/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def main():
2020
exit(1)
2121

2222
# You can use print statements as follows for debugging, they'll be visible when running tests.
23-
print("Logs from your program will appear here!", file=sys.stderr)
23+
print("Logs from your program will appear here!")
2424

2525
# Uncomment this block to pass the first stage
2626
# if match_pattern(input_line, pattern):

compiled_starters/ruby/app/main.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def main
1616
end
1717

1818
# You can use print statements as follows for debugging, they'll be visible when running tests.
19-
warn "Logs from your program will appear here"
19+
puts "Logs from your program will appear here"
2020

2121
# Uncomment this block to pass the first stage
2222
# if match_pattern(input_line, pattern)

compiled_starters/rust/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ fn match_pattern(input_line: &str, pattern: &str) -> bool {
1313
// Usage: echo <input_text> | your_program.sh -E <pattern>
1414
fn main() {
1515
// You can use print statements as follows for debugging, they'll be visible when running tests.
16-
eprintln!("Logs from your program will appear here!");
16+
println!("Logs from your program will appear here!");
1717

1818
if env::args().nth(1).unwrap() != "-E" {
1919
println!("Expected first argument to be '-E'");

compiled_starters/typescript/app/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (args[2] !== "-E") {
1717
}
1818

1919
// You can use print statements as follows for debugging, they'll be visible when running tests.
20-
console.error("Logs from your program will appear here!");
20+
console.log("Logs from your program will appear here!");
2121

2222
// Uncomment this block to pass the first stage
2323
// if (matchPattern(inputLine, pattern)) {

0 commit comments

Comments
 (0)